<?php /*a:2:{s:60:"D:\WAMP\wamp64\www\jj\application\index\view\index\index.php";i:1551939287;s:60:"D:\WAMP\wamp64\www\jj\application\index\view\common\base.php";i:1551249315;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
        <?php echo widget('common/seo', ['seo' => isset($seo) ? $seo : []]); ?>
        <meta content="telephone=no" name="format-detection">
        <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
        <link rel="stylesheet" href="/pc/css/base.css">
        <script src="/pc/js/jquery.1.8.3.min.js"></script>
        <script  src="/plugin/layer3/layer.js"></script>
        
<link rel="stylesheet" href="/pc/css/index.css" />


    </head>
    <body>
        <div id="wrapper">
        
<a href="http://wpa.qq.com/msgrd?v=3&uin=2013767759&site=qq&menu=yes" target="_blank" class="onlineKF">在线客服</a>
<div class="indexBox">
    <?php echo widget('common/top', ['nav' => 1]); if ($status==0) {?>
        <a href="/login/login_page" class="join">立即加入</a>
    <?php }?>
    <a href="javascript:void(0)" id="look_video" class="watch">观看视频</a>
</div>
<div class="mainFontLeft middle clear">
    <ul class="mainImg clear fr">
        <li><a href="javascript:void(0)"><img src="/pc/img/main1.jpg" alt="" title="图1"></a></li>
        <li><a href="javascript:void(0)"><img src="/pc/img/main2.png" alt="" title="图1"></a></li>
        <li><a href="javascript:void(0)"><img src="/pc/img/main3.png" alt="" title="图1"></a></li>
        <li><a href="javascript:void(0)"><img src="/pc/img/main4.png" alt="" title="图1"></a></li>
        <li><a href="javascript:void(0)"><img src="/pc/img/main5.png" alt="" title="图1"></a></li>
        <li><a href="javascript:void(0)"><img src="/pc/img/main6.png" alt="" title="图1"></a></li>
    </ul>
    <div class="mainFont mainFont1">
        <h2 class="mainTitle">企业代运营</h2>
        <div class="mainArticle">我们拥有精细化运营团队，致力于网络推广，形象包装，市场拓展，支持各种市场营销模式，满足品牌推广需求,我们拥有精细化运营团队，致力于网络推广，形象包装，市场拓展，支持各种市场营销模式，满足品牌推广需求......</div>
        <a href="/yunying" class="seeDetail">查看详情</a>
    </div>
</div>
<div class="mainFontRight middle clear">
    <ul class="mainImg clear fl">
        <li><a href="javascript:void(0)"><img src="/pc/img/main6.jpg" alt="" title="图1"></a></li>
        <li><a href="javascript:void(0)"><img src="/pc/img/main7.png" alt="" title="图1"></a></li>
        <li><a href="javascript:void(0)"><img src="/pc/img/main8.png" alt="" title="图1"></a></li>
        <li><a href="javascript:void(0)"><img src="/pc/img/main9.png" alt="" title="图1"></a></li>
        <li><a href="javascript:void(0)"><img src="/pc/img/main10.png" alt="" title="图1"></a></li>
        <li><a href="javascript:void(0)"><img src="/pc/img/main11.png" alt="" title="图1"></a></li>
    </ul>
    <div class="mainFont mainFont2">
        <h2 class="mainTitle">个人培训</h2>
        <div class="mainArticle">加入就就，一对一专业培训，巧妙利用抖音规则，上热门。加入我们，你就是下一个网红。加入就就，一对一专业培训，巧妙利用抖音规则，上热门。加入我们，你就是下一个网红。加入就就，一对一专业培训，巧妙利用抖音规则，上热门。</div>
        <a href="/peixun" class="seeDetail">查看详情</a>
    </div>
</div>
<!--微电影-->
<div class="tinyFilmBox">
    <div class="tinyFilm middle">
        <h2 class="tinyTitle">微电影</h2>
        <div class="tinyTitle2">MICROCINEMA</div>
        <ul class="tinyNavUl clear">
            <?php foreach ($video_type as $key=>$val) {?>
                <li <?php if ($key == 0) { echo "class='current'"; } ?>><a href="javascript:void(0)" data-id="<?php echo $val['id']?>" class="type_id">
                        <p class="tinyPoint"><?php echo $val['title']?></p>
                        </a></li>
            <?php }?>

        </ul>
            <?php $j = 0;foreach ($arr as $key=>$val) {?>
                <ul class="tinyImgUl all_index clear ul-video-<?php echo $key ;?>" <?php echo $j != 0 ? 'style="display:none"' : ''; ?> >
                    <?php foreach ($val as $k=>$value) {?>
                        <li  class="detailvideo"  data-id="<?php echo $value['id']?>" ><a href="javascript:void(0)"  data-id="<?php echo $value['id']?>"><img src="<?php echo model("file")->getpath($value['image_id'])?>" alt="tiny" title="tiny">
                                <p class="tinyDescribe"><?php echo $value['title']?></p>
                            </a></li>
                    <?php }?>

                </ul>
                <?php $j++;}?>


        <a href="/video" class="seeMoreWhite">查看更多</a>
    </div>
</div>

<div class="newsInfoBox">
    <div class="newsInfo middle">
        <h2 class="indexNewsTitle">新闻资讯</h2>
        <div class="newsTitle2">NEWS INFORMATION</div>
        <ul class="newsUl clear">
            <?php foreach ($hot_news as $val) {?>
                <li><a href="/news/detail?id=<?php echo $val['id']?>" class="clear"><img src="<?php echo $val['imagepath']?>" alt="news" title="news" class="fl">
                        <div class="newsInfoBody">
                            <p class="newsInfoTitle"><?php echo $val['title']?></p>
                            <p class="newsDescribe"><?php echo $val['content']?></p>
                        </div>
                    </a></li>
            <?php }?>

        </ul>
        <a href="/news/index" class="seeMoreBlack">查看更多</a>
    </div>
</div>

<div class="advertisement">
    <h2 class="adTitle">成就下一个网红的你</h2>
    <?php if ($status==0) {?>
<!--        <a href="/login/login_page" class="join">立即加入</a>-->
        <a href="/login/login_page" class="join join2">立即加入</a>
    <?php }?>
</div>
<?php echo widget('common/foot'); ?>
<script>
$(function () {
    $(".type_id").click(function () {

        var data_id=$(this).attr("data-id")
        //    showlist(data_id)

    })
    $(".loginName").click(function () {
        window.location.href='user/order'
    })
    // $(".detailvideo").click(function () {
    //     var vid=$(this).attr('data-id')
    //
    //     $.post('/common/islogin',function (data) {
    //
    //         if (data['status']!=1){
    //             window.location.href="/login/login_page"
    //         }else {
    //             window.location.href='/video/'+vid
    //         }
    //
    //     },'json')
    // })
    $(".tinyNavUl").on('click', 'li a', function(){
        $(this).closest('li').addClass('current') //找父级
        $(this).closest('li').siblings("li").removeClass('current')
        var id = $(this).data('id') //获取type_id
        $(".tinyImgUl").hide()
        $(".ul-video-"+id).show()
    })
    //观看视频
    $("#look_video").click(function () {

        layer.open({
            type: 2,
            title: false,
            area: ['630px', '360px'],
            shade: 0.8,
            closeBtn: 0,
            shadeClose: true,
            content: '<?php echo $ads['video_path']?>'
        });
    })
    //微视频
    $(".detailvideo").click(function () {
        var vid=$(this).attr("data-id")
        window.location.href='/video/'+vid
        // $.post('/common/islogin',function (data) {
        //
        //     if (data['status']!=1){
        //         window.location.href="/login/login_page"
        //     }else {
        //         window.location.href='/video/'+vid
        //     }
        //
        // },'json')
    })

})
</script>


        


        <div class="popup">
            <div class="popmain">
                <div class="popTop clear">
                    <div class="poptab poptabdl on fl">登录</div>
                    <div class="poptab poptabzc fl">注册</div>
                </div>
                <div class="poperror"></div>
                <ul class="popUl popdl">
                    <li class="popLi zh">
                        <input type="text"  id="loginphone" placeholder="请输入手机号">
                    </li>
                    <li class="popLi mm">
                        <input type="password" id="loginpwd" placeholder="请输入密码">
                    </li>
                    <li class="popLioth clear"><input type="checkbox"  id="nextlogin" >&nbsp;<label for="nextlogin">下次自动登录</label><a href="<?php echo url('setnewpwd/findpwd1')?>" class="register fr">忘记密码？</a></li>
                    <li class="hand">
                        <input type="submit" id="login" value="登 录">
                    </li>
                </ul>
                <ul class="popUl popzc">
                    <li class="popLi zh">
                        <input type="text" id="phone" placeholder="请输入手机号">
                    </li>
                    <li class="popLicode clear">
                        <input type="text" placeholder="请输入验证码" id="yzm"  class="fl"><span id="code" class="code fr">获取验证码</span>
                    </li>
                    <li class="popLi mm">
                        <input type="password" id="pwd" placeholder="请输入密码">
                    </li>
                    <li class="popLi mm">
                        <input type="password" id="pwd2" placeholder="请再次输入密码">
                    </li>
                    <li class="hand pt">
                        <input type="submit" id="reg" value="注 册">
                    </li>
                </ul>
            </div>
        </div>
        <script>
            $(function(){
                $('.poptab').on('click', function()
                {
                    var index = $(this).index()
                    $(this).addClass('on').siblings('.poptab').removeClass('on')
                    $('.popUl').eq(index).addClass('on').siblings('.popUl').removeClass('on')
                })
                $('.idxdl').click(function()
                {
                    $('.popup').addClass('on')
                    $('.poptabdl').addClass('on')
                    $('.poptabzc').removeClass('on')
                    $('.popdl').addClass('on')
                    $('.popzc').removeClass('on')
                })
                $('.idxzc').click(function()
                {
                    $('.popup').addClass('on')
                    $('.poptabzc').addClass('on')
                    $('.poptabdl').removeClass('on')
                    $('.popzc').addClass('on')
                    $('.popdl').removeClass('on')
                })
                $('.poperror').click(function()
                {
                    $('.popup').removeClass('on')
                    $('.poptabzc').removeClass('on')
                    $('.poptabdl').removeClass('on')
                    $('.popzc').removeClass('on')
                    $('.popdl').removeClass('on')
                })

                var count = 60;
                var InterValObj1;
                var curCount1;
                var flag = true;
                    //获取短信验证码
                $("#code").click(function () {
                    var mobile=$("#phone").val();//获取手机号
                    var phoneReg = /1[3578]{1}\d{9}$/;
                    if (!phoneReg.test(mobile)) {
                        layer.msg('请输入有效的手机号码')
                        return false;
                    };

                    if (!flag) {
                        return false;
                    }
                    flag = false
                    $.post('<?php echo url('common/sendcode'); ?>',{mobile:mobile},function (data) {
                            if (data['status']==1){
                                layer.msg(data['data'])
                            } else {
                                layer.msg(data['data'])
                                window.clearInterval(InterValObj1)
                                $("#code").text("获取验证码");
                                flag=true
                                return false;//短信发送失败

                            }
                    },'json')
                    curCount1 = count;
                    $("#code").attr("disabled", "true");
                    $("#code").text(+curCount1+ "秒再获取");
                    InterValObj1 = window.setInterval(SetRemainTime1, 1000);
                })
                function SetRemainTime1() {
                    if (curCount1 == 0) {
                        flag = true
                        window.clearInterval(InterValObj1);
                        $("#code").removeAttr("disabled");
                        $("#code").text("重新发送");
                    } else {
                        curCount1--;
                        $("#code").text(+curCount1 + "秒再获取");
                    }
                }

                //注册
                $("#reg").click(function () {
                        var mobile=$("#phone").val(); //手机号
                        var yzm=$("#yzm").val();//验证码
                        var password=$("#pwd").val();//密码
                        var repassword=$("#pwd2").val();//确认密码
                        var phoneReg = /1[3578]{1}\d{9}$/;
                        if (mobile==''){
                            layer.msg('手机号必填');
                            return false;
                        }
                        if (!phoneReg.test(mobile)) {
                            layer.msg('请输入正确的手机号')
                            return false;
                        };
                        if(yzm==""){
                            layer.msg('请输入您的短信验证码')
                            return false;
                        }

                        if (password==''){
                            layer.msg('密码不能为空');
                            return false;
                        }


                        // var pwdReg=/[a-zA-Z0-9_]{6,10}$/;
                            if (password.length<6 || password.length>20){
                                layer.msg('密码长度只能6-20位')
                                return false;
                            }
                            if (repassword==''){
                                layer.msg('确认密码必填');
                                return false;
                            }
                            if (repassword!=password){
                                layer.msg('两次密码不一致');
                                return false;
                            }

                        $.post('<?php echo url('login/reg'); ?>',{mobile:mobile,password:password,repassword:repassword,yzm:yzm},function (data) {

                            if (data['status']!=1){
                                layer.msg(data['data']);
                                return false
                            }else {
                                layer.msg(data['data'])
                                setTimeout(function () {

                                    window.location.reload()
                                },1000)

                            }
                        },'json')

                })
                //登录
                $("#login").click(function () {
                    var mobile=$("#loginphone").val();//登录的账号
                    var password=$("#loginpwd").val();//登录的密码
                        if (mobile==""){
                            layer.msg('请输入手机号')
                            return false;
                        }
                    var phoneReg = /1[3578]{1}\d{9}$/;
                        if (!phoneReg.test(mobile)) {
                            layer.msg('请输入正确的手机号')
                            return false;
                        };
                        if (password==""){
                            layer.msg('密码不能为空');
                            return false;
                        }
                        if ($("#nextlogin").is(":checked")){
                           var state=1;
                        }else {
                            var state=0;
                        }

                        $.post("<?php echo url('login/index')?>",{mobile:mobile,password:password,state:state},function (data) {

                            if (data['status']!=1){
                                layer.msg(data['data']);
                                return false;
                            }else {
                                layer.msg(data['data'])
                                 setTimeout(function () {
                                        window.location.reload()
                                    },1000);
                            }
                        },'json')
                })

            })
        </script>
        </div>
    </body>
</html>